package com.example.test.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/friend")
public class FriendshipController {

//    @RequestMapping("/bahuli")
//    public String show() {
//        return "bahuli";
//    }

    @RequestMapping("/bahuli")
    public ModelAndView bahuli() {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("bahuli"); // 同样这里可以指定视图名称或返回内容
        // 处理其他逻辑
        return modelAndView;
    }
}
